<?php
session_start();
header("Pragma:no-cache\r\n");
header("Cache-Control:no-cache\r\n");
header("Expires:0\r\n");
header("Content-Type: text/html; charset=uft-8");
define('INIT_XMALL',true);
define('INIT_ROOT','../');
include_once(INIT_ROOT."system_include/conn.php");
include_once(INIT_ROOT."system_include/check_purview.php");


$con_result = $db->query("select * from ".$tablepre."admin where ID=".$_SESSION["adminID"]."");
$con_row = $db->fetch_array($con_result);
$check_value = $con_row["adminConfig"];


$cms_sql = "SELECT * FROM ".$tablepre."channel WHERE `show`=1 and `items`=1 ORDER BY sequence asc";	 
$cms_result = $db->query($cms_sql);
while($cms_row=$db->fetch_array($cms_result))
{
	$con_value = explode(",",$check_value);

	for ($k=0;$k<count($con_value);$k++)
	{
		if($con_value[$k]==$cms_row["id"] or checkManag($_SESSION["adminLov"])==true) {			 
		
		echo "<div class=ileft><div class=ilt2 onClick=\"return fullmenu('../".$cms_row["tabname"]."/admin_left.php');\"><a href=../".$cms_row["tabname"]."/admin_index.php target=mainFrame>".$cms_row["channel"]."</a></div><ul></ul></div>";
	
		}
	}
}//END while
?>
<script language="JavaScript">
<!--
function fullmenu(url){
	if (url==null) {url = "admin_left.php";}
	parent.leftFrame.location = url;
}
//-->
</script>